﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PM.Web
{
    public partial class FeeQuery : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Common.CheckUserOnline();
                bindData();
            }
        }

        private void bindData()
        {
            string sMonth = this.ddlYear.SelectedValue + this.ddlMonth.SelectedValue;
            PM.DataAccess.PmData dal = new DataAccess.PmData();
            this.repFeeList.DataSource = dal.GetFeeList(int.Parse(Session["CommId"].ToString()), int.Parse(Session["BuildId"].ToString()), int.Parse(Session["UnitId"].ToString()), int.Parse(Session["EmpId"].ToString()), sMonth);
            this.repFeeList.DataBind();
        }

        protected void btnQuery_Click(object sender, EventArgs e)
        {
            bindData();
        }
    }
}